/**
 * 
 */
package com.swim.natatoriumorder.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.swim.natatoriumorder.entity.OrderStudent;
import com.swim.natatoriumorder.dao.OrderStudentDao;

/**
 * 订单学员Service
 * @author 刘军武
 * @version 2021-03-23
 */
@Service
@Transactional(readOnly=true)
public class OrderStudentService extends CrudService<OrderStudentDao, OrderStudent> {
	
	/**
	 * 获取单条数据
	 * @param orderStudent
	 * @return
	 */
	@Override
	public OrderStudent get(OrderStudent orderStudent) {
		return super.get(orderStudent);
	}
	
	/**
	 * 查询分页数据
	 * @param page 分页对象
	 * @param orderStudent
	 * @return
	 */
	@Override
	public Page<OrderStudent> findPage(Page<OrderStudent> page, OrderStudent orderStudent) {
		return super.findPage(page, orderStudent);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param orderStudent
	 */
	@Override
	@Transactional(readOnly=false)
	public void save(OrderStudent orderStudent) {
		super.save(orderStudent);
	}
	
	/**
	 * 更新状态
	 * @param orderStudent
	 */
	@Override
	@Transactional(readOnly=false)
	public void updateStatus(OrderStudent orderStudent) {
		super.updateStatus(orderStudent);
	}
	
	/**
	 * 删除数据
	 * @param orderStudent
	 */
	@Override
	@Transactional(readOnly=false)
	public void delete(OrderStudent orderStudent) {
		super.delete(orderStudent);
	}
	
}